package com.qfedu.api.coupon.feign;

import com.qfedu.api.coupon.fallback.CouponFeignFallbackFactory;
import com.qfedu.common.core.common.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Classname CouponInfoFeignService
 * @Description TODO
 * @Date 2025-09-25 16:51
 * @Created by 老任与码
 */
@FeignClient(name = "micro-coupon", fallbackFactory = CouponFeignFallbackFactory.class)
public interface CouponInfoFeignService {

    @GetMapping("/api/coupon/info/distribute")
    R distributeCoupon(@RequestParam("productType") Integer productType, @RequestParam("uid") Integer uid);
}
